package com.subsequent.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;

@TableName("schedules")
@Data
public class Schedules implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer scheduleId;

    private Integer ruleId;
    private Date scheduleDate;      // java.sql.Date 也可以
    private Time startTime;         // java.sql.Time 推荐
    private Time endTime;           // java.sql.Time 推荐
    private Integer availableSlots;
    private Integer status;
    private Date createdAt;
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}